﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace Zero.UControl.Component
{
    public class CommonAttachHelper
    {
       
        #region 异常显示位置

        public static Dock GetPlacement(DependencyObject obj)
        {
            return (Dock)obj.GetValue(PlacementProperty);
        }

        public static void SetPlacement(DependencyObject obj, Dock value)
        {
            obj.SetValue(PlacementProperty, value);
        }

        public static readonly DependencyProperty PlacementProperty =
            DependencyProperty.RegisterAttached("Placement", typeof(Dock), typeof(CommonAttachHelper), new PropertyMetadata(Dock.Bottom));

        #endregion
    }
}
